public class Student implements Comparable{
    String name;
    int score;
    Student(String name,int score){
        this.name = name;
        this.score = score;
    }
    public int getScore(){
        return score;
    }
    public String getName(){
        return name;
    }

    @Override
    public int compareTo(Object o) {
        Student student = (Student) o;
        if(score > student.score)
            return 1;
        else if(score < student.score)
            return -1;
        else
            return 0;
    }
}
